Writing to net
Short Description
The server is writing a packet to the network.
Detailed Description
Writing to net
will be seen when MySQL is delivering data to a client. Be aware that this event will still be seen when the client in local to the server.
How to reduce this wait
If you see an abnormal amount of threads in Writing to net
state, check for:
- Network interface errors
- Busy networks
There are also reported possibilities of MySQL timing out a connection where the client is not consuming the MySQL output fast enough and the default 30 second timeout kicking in, but this should be considered an edge case.
Additional Links
- MySQL Documentation - General Thread States - Writing to net
- dba.stackoverflow - Why do our queries get stuck on the state “Writing to net” in MySql?
Search online
If this article doesn't have the information you need you can try searching online. Remember, you can contribute suggestions to this page.